package org.orion.engine;

import java.io.File;
import java.io.IOException;

import javax.media.opengl.GLException;

import com.sun.opengl.util.texture.TextureIO;

public class TextureExt extends Texture {
	private com.sun.opengl.util.texture.Texture texture;
	
	public TextureExt(int type,String file){
		super(type);
		try {
			this.texture = TextureIO.newTexture(new File(file), true);
			
		} catch (GLException e) {
			
		} catch (IOException e) {
			System.out.println(Texture.class.getName()+" "+e.getMessage());
		}
		setId(texture.getTextureObject());
	}
}
